﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.WarehouseCommon
{
    /// <summary>
    /// 出库类型
    /// </summary>
    [SugarTable("OutboundTypes")]
    public class OutboundType : BaseEntity
    {
        /// <summary>
        /// 出库类型编号
        /// </summary>
        [SugarColumn(IsIdentity =true,IsPrimaryKey =true)]
        public int OutboundTypeId { get; set; }
        /// <summary>
        /// 出库类型名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)", IsNullable =true)]
        public string OutboundTypeName { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 子集
        /// </summary>
        [SugarColumn(IsIgnore =true)]
        public List<OutboundType> Children { get; set; }
    }
}
